package com.wujunshen.dumpling.database.mysql.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.wujunshen.dumpling.database.metadata.IPrimaryKey;
import com.wujunshen.dumpling.database.mysql.mapping.MappingField;
import lombok.Data;

/**
 * 表主键
 *
 * @author frankwoo
 */
@Data
public class MySqlPrimaryKey implements IPrimaryKey {
  @JsonProperty(value = "数据库名")
  @MappingField(value = "TABLE_CAT")
  private String tableSchema;

  /** 表名 */
  @JsonProperty(value = "表名")
  @MappingField(value = "TABLE_NAME")
  private String tableName;

  /** 列名 */
  @JsonProperty(value = "列名")
  @MappingField(value = "COLUMN_NAME")
  private String columnName;
  /** */
  @JsonProperty(value = "索引中的列序列号")
  @MappingField(value = "KEY_SEQ")
  private String keySeq;
}
